package com.mdb.open.trade.feign;
/*
 * Copyright (C), 2017-2019 澳发科技(MDB)
 * FileName: RiskClient.java
 * Author:   符楚
 * Date:     2019-07-26 11:52
 * History:
 * <author>          <time>          <version>          <desc>
 * 符楚               2019-07-26          V1.00             新建
 * -----------------------------------------------------------
 * 作者姓名           修改时间           版本号            描述
 */

import com.mdb.bc.api.data.ResultEx;
import com.mdb.open.trade.feign.dto.StartRiskModelDto;
import com.mdb.open.trade.feign.fallback.RiskClientFallbackFactory;
import com.mdb.open.trade.feign.vo.RiskModelRecordVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 风控<br>
 * <br>
 *
 * @author 符楚
 * @Date 2019-07-26 11:52
 */
@FeignClient(value = "cnt-risk-service", fallbackFactory = RiskClientFallbackFactory.class)
public interface RiskClient {

    /**
     * 启动风控模型
     *
     * @param dto
     * @return
     */
    @PostMapping("/model/start")
    ResultEx<RiskModelRecordVo> start(@RequestBody StartRiskModelDto dto);
}
